package cn.xinfei.xdecision.common.model.component;

import cn.xinfei.xdecision.common.model.BaseDO;
import cn.xinfei.xdecision.common.utils.enums.enginex.ComponentTypeEnum;
import cn.xinfei.xdecision.common.utils.enums.enginex.NodeTypeEnum;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@EqualsAndHashCode(callSuper = true)
@TableName("t_component_action")
@Accessors(chain = true)
@Data
public class ComponentAction extends BaseDO {

    /**
     * 组件code
     */
    private String componentCode;

    /**
     * 组件类型
     *
     * @see ComponentTypeEnum
     */
    private String componentType;

    /**
     * 组件版本号
     */
    private Long versionNo;

    /**
     * 动作类型
     */
    private Integer actionType;

    /**
     * 变量code
     */
    private String varCode;

    /**
     * 有效期
     */
    private Long duration;
}
